package com.rgp.servicemap.controller;

import com.rgp.internalcommon.dto.ResponseResult;
import com.rgp.servicemap.service.DicDistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-15 17:11
 */
@RestController
public class DicDistrictController {

    @Autowired
    private DicDistrictService dicDistrictService;

    @GetMapping("dic-district")
    public ResponseResult loadDicDistrict(@RequestParam("keywords")String keywords,
                                          @RequestParam("subdistrict") String subdistrict,
                                          @RequestParam("extensions") String extensions){
        ResponseResult result = dicDistrictService.loadDicDistrict(keywords,subdistrict,extensions);
        return result;
    }
}